package com.tensequare.spit.dao;

import com.tensequare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @Author: Feng.Wang
 * @Company: Zelin.ShenZhen
 * @Description:
 * @Date: Create in 2019/3/25 16:07
 */
public interface SpitDao extends MongoRepository<Spit,String> {
    //根据父id查询吐槽列表
    public Page<Spit> findByParentid(String parentId, Pageable pageable);
}
